addEventListener("load", function() {setTimeout(hideURLbar, 0); }, false);

 function hideURLbar()
{ 
	window.scrollTo(0,1);
}

 function checkPasswordInput()
 {
	 var eleValue = document.loginForm.account.value;
	 if('' == eleValue || '帐号' == eleValue)
	 {
		alert("请输入账户!");
		document.loginForm.account.focus();
		return false;
	 }
	 if( eleValue.length < 4 )
	 {
		alert("账户太短!");
		document.loginForm.account.focus();
		return false;
	 }
	 for(i = 0 ;i < eleValue.length ; i ++)
	 {
		 if(' ' == eleValue[i] || '\n' == eleValue[i] )
		 {
			alert("账户使用了非法符号!");
			document.loginForm.account.focus();
			return false;
		 }
	 }
	 
	 var eleValue1 = document.loginForm.password.value;
	 if('' == eleValue1 || '密码' == eleValue1)
	 {
		alert("请输入密码!");
		document.loginForm.password.focus();
		return false;
	 }
	 if( eleValue1.length < 6 )
	 {
		alert("请输入至少六位密码!");
		document.loginForm.password.focus();
		return false;
	 }
	 for(i = 0 ;i < eleValue1.length ; i ++)
	 {
		 if(' ' == eleValue1[i] || '\n' == eleValue1[i] )
		 {
			alert("密码使用了非法符号!");
			document.loginForm.password.focus();
			return false;
		 }
	 }
	 return true;
 }
 
 function submitRequest()
 {
	if( false == checkPasswordInput())
	{
		return false ;
	}
	var fields = new Array();
	fields.push("account");
	fields.push("password");
	fields.push("type");
	
	
	var fieldValue = new Array();
	var account = document.getElementById("Account").value;
	var password = document.getElementById("Password").value;
	fieldValue.push( account );
	fieldValue.push( password );
	
	var typeValue = 1;
	var radio = document.getElementsByName("power");
	
	for( var i = 0 ; i < radio.length ; i ++ )
	{
		if( true == radio[i].checked )
		{
			typeValue = i + 1;
			break;
		}
	}
	fieldValue.push( typeValue );
	postSubmitCurrentPage( fields , fieldValue );
	return true;
 }
 /*
 function tx_getFocus()
 {
	 document.getElementById("Password1").style.display="none";
	 document.getElementById("Password").style.display="block";
	 document.getElementById("Password").focus();
 }
 
 function pw_loseFocus()
 {
	 if(document.getElementById("Password").value=="")
	 {
		 document.getElementById("Password").style.display="none";
	 	 document.getElementById("Password1").style.display="block";
	 }	 
 }
 
 */